package cn.itcast.mr.order;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

/**
 * Author itcast
 * Date 2021/10/17 16:37
 * Desc TODO
 */
public class OrderReducer extends Reducer<OrderBean, NullWritable,OrderBean,NullWritable> {
    @Override
    protected void reduce(OrderBean key, Iterable<NullWritable> values, Context context) throws IOException, InterruptedException {
        /*for (NullWritable value : values) {
            context.write(key,value);
            break;
        }*/
        context.write(key,NullWritable.get());
    }
}
